package com.momoauth.api_client.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@DS("momo_auth")
@TableName("momo_dist_item")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MoMo_Dist_Item {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    private Long type_id; //字典类型ID（外键）
    private String type_code; //字典编码（外键）
    @NotEmpty(message="标签名不能为空！")
    private String itemKey; //标签名
    @NotEmpty(message="数据值不能为空！")
    private String itemValue; //数据值
    private String description; //描述
    private Integer status; //状态
    private Long create_userId; //创建人用户ID（外键）
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private String createTime; //创建人时间
    private Long update_userId; //修改人用户ID（外键）
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime; //修改时间
    @TableField(exist = false)
    private Integer currentPage; //页码
    @TableField(exist = false)
    private Long pageSize; //计数
}
